CC=gcc
CXX=g++
CFLAGS=-c -m32 -g -Wall
CXXFLAGS=
INCPATH=
LINK=gcc
ASMFLAGS=-masm=intel
LDFLAGS=-m32
LFLAGS=
LIBS=
RM=del

all: app1.exe

app1.exe: cpuinfo.o main.o
	$(CC) $(LDFLAGS) main.o cpuinfo.o -o app1.exe

main.o: main.c
	$(CC) $(CFLAGS) main.c -o main.o
	
cpuinfo.o:	cpuinfo.s
	$(CC) $(CFLAGS) $(ASMFLAGS) cpuinfo.s -o cpuinfo.o
	
clean:
	$(RM) *.o
	$(RM) *.exe
	
asm:
	gcc -S -m32 -masm=intel -fno-asynchronous-unwind-tables cpuinfo.c -o cpuinfo.asm
